import 'dart:io';

import 'package:get/get.dart';
import 'package:image_picker/image_picker.dart';

import 'eight_state.dart';

class EightLogic extends GetxController {
  final EightState state = EightState();

  @override
  void dispose() {
    if (state.croppedFile != null) {
      File(state.croppedFile!).delete();
    }
    if (state.pickedFile != null) {
      File(state.pickedFile!).delete();
    }
    super.dispose();
  }
}
